-- local prefab_name = 'fx_lunarplant'
local prefab_name = 'fx_laserbeem_blue_particle'

local assets =
{
    Asset( 'ANIM', 'anim/'..prefab_name..'.zip'),

}

local prefabs = 
{

}
-------

local function fn()
    local inst = CreateEntity()

    inst.entity:AddTransform()
    inst.entity:AddAnimState()

    inst.entity:AddNetwork()
    inst.entity:AddSoundEmitter()
    -- MakeInventoryPhysics(inst)

    inst.AnimState:SetBank(prefab_name)
    inst.AnimState:SetBuild(prefab_name)
    inst.AnimState:PlayAnimation('gen',true)
    inst.AnimState:PushAnimation('loop',true)
    inst.AnimState:SetOrientation(ANIM_ORIENTATION.OnGround)
    inst.AnimState:SetSortOrder(5)

    inst.entity:SetPristine()
    if not TheWorld.ismastersim then 
        return inst 
    end
  

    return inst
end

return Prefab('common/inventory/'..prefab_name, fn, assets, prefabs)
